 module.exports = {
    baseUrl: './',
    productionSourceMap: false,
    devServer: {
        port:8080,
        proxy: {
            '/api':{
                target:'http://localhost:8888',
                changeOrigin:true,
                pathRewrite:{
                    '/api':''
                },
            '/api': {
              target: 'http://localhost:8888',
              pathRewrite: { '^/api': '' },
              ws: true, // 用于支持websocket
              changeOrigin: true, // 用于控制请求值中的host字段

            },

          },
    }
}
}